package com.demo.Rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "queueC")
public class DirectExchangeConsumerC {
    @RabbitHandler
    public void consumerDirectMsg(String meaasge){
        System.out.println("queueC收到消息"+meaasge);
    }
}
